const state = {
  loginInfo: {}
}

const mutations = {
  SET_LOGININFO: (state, data) => {
    state.loginInfo = data
  }
}

const actions = {
  // 用户登录
  login({ commit }, loginParams) {
    return new Promise((resolve, reject) => {
		//完成http请求
		//then => resolve(response)
		//catch => reject(error)
    })
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}